#include<iostream>
using namespace std;
const int MAX_NUM = 100;
int main()
{
	int a[MAX_NUM];
	int n;
	cin>>n;
	for(int i = 0;i<n;++i)
	cin>>a[i];
	for(int i = 0;i<n-1;++i)
	{
		int tmpmin = i;
		for(int j = i;j<n;++j)
		{
			if(a[j]<a[tmpmin])
			tmpmin = j;
		}
		int tmp = a[i];
		a[i] = a[tmpmin];
		a[tmpmin]=tmp;
	}
	for(int i = 0;i<n;++i)
	cout<<a[i]<<endl;
	return 0;
	
}